package com.wshoto.ocean.bootstrap;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动入口
 *
 * @author Lee
 */
@Slf4j
@EnableConfigurationProperties
@EnableAsync
@EnableScheduling
@ServletComponentScan
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.wshoto.**.feign.client"})
@SpringBootApplication(scanBasePackages = {"com.wshoto"})
public class OceanServerBootstrapApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(OceanServerBootstrapApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
        log.info("模板服务启动成功");
    }

}
